package com.drug.mingkang.model;

import java.util.Date;
import java.io.Serializable;

/**
 * 总公司销售明细(HqMarketdetail)实体类
 *
 * @author wenchangjian
 * @since 2020-08-11 12:00:13
 */
public class HqMarketdetail implements Serializable {
    private static final long serialVersionUID = 306714270306903222L;
  /**
    * 销售明细ID
    */
    private String marketdetailId;
  /**
    * 药品ID
    */
    private String drugId;
  /**
    * 总公司销售ID
    */
    private String marketId;
  /**
    * 数量
    */
    private Integer num;
  /**
    * 价格
    */
    private Double price;
  /**
    * 是否有效
    */
    private Integer isva;
  /**
    * 操作时间
    */
    private Date optime;
  /**
    * 操作人
    */
    private String oper;
  /**
    * 备注
    */
    private String remark;
  /**
    * 排序
    */
    private Integer sort;

    /**
     * 药品名称
     */
    private String drugName;

    /**
     * 药品图片
     */
    private String drugImg;


    /**
     * 小计
     * @return
     */
    private Double  subtotal;

    public Double getSubtotal() {
        return num*price;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }

    public String getDrugImg() {
        return drugImg;
    }

    public void setDrugImg(String drugImg) {
        this.drugImg = drugImg;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getMarketdetailId() {
        return marketdetailId;
    }

    public void setMarketdetailId(String marketdetailId) {
        this.marketdetailId = marketdetailId;
    }
  
    public String getDrugId() {
        return drugId;
    }

    public void setDrugId(String drugId) {
        this.drugId = drugId;
    }
  
    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }
  
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
  
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
  
    public Integer getIsva() {
        return isva;
    }

    public void setIsva(Integer isva) {
        this.isva = isva;
    }
  
    public Date getOptime() {
        return optime;
    }

    public void setOptime(Date optime) {
        this.optime = optime;
    }
  
    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper;
    }
  
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
  
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


    @Override
    public String toString() {
        return "HqMarketdetail{" +
                "marketdetailId='" + marketdetailId + '\'' +
                ", drugId='" + drugId + '\'' +
                ", marketId='" + marketId + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", isva=" + isva +
                ", optime=" + optime +
                ", oper='" + oper + '\'' +
                ", remark='" + remark + '\'' +
                ", sort=" + sort +
                ", drugName='" + drugName + '\'' +
                ", drugImg='" + drugImg + '\'' +
                ", subtotal=" + subtotal +
                '}';
    }
}